package net.csdn.business.common.config.oss;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 阿里云oss配置类
 * @author zhangyl
 * @date 2022/6/22 10:52 上午
 */
@Data
@ConfigurationProperties(prefix = "ali.oss")
public class AliYunOssProperties {

    /**
     * oss的bucket名称
     */
    private String bucketName;


    /**
     * oss的accessKey
     */
    private String accessKey;

    /**
     * oss的secretKey
     */
    private String secretKey;

    /**
     * oss地址
     */
    private String endpoint = "https://oss-cn-beijing.aliyuncs.com";

    /**
     * oss地址
     */
    private String endpointWithBucket = "https://atomgit.oss-cn-beijing.aliyuncs.com";

    /**
     * stsToken接入地址
     */
    private String stsEndPoint;


    /**
     * stsToken的roleArn
     */
    private String roleArn;

    /**
     * stsToken的regionId
     */
    private String regionId="cn-beijing";

    /**
     * stsToken的roleSessionName
     */
    private String roleSessionName="atomgit";

    /**
     * 上传用户头像的路径
     */
    private String userDir="uploads/user/";

    /**
     * 上传issue相关图片的路径
     */
    private String issueDir="uploads/issue/";

    /**
     * 上传组织相关的图片路径
     */
    private String orgDir="uploads/org/";

    /**
     * 上传oauth应用相关的图片路径
     */
    private String clientDir="uploads/client_logo/";

    /**
     * oss的regionId
     */
    private String ossRegionId="oss-cn-beijing";


    /**
     * 阿里云cdn的
     */
    private String cdnEndpoint="cdn.aliyuncs.com";
}